Skip to content

Update react-bootstrap imports#840

Merged
quicksnap merged 1 commit intoerikras:masterfrom
markusjwetzel:master
Jan 24, 2016
Merged

Update react-bootstrap imports#840
quicksnap merged 1 commit intoerikras:masterfrom
markusjwetzel:master

Conversation

@markusjwetzel
Copy link
Copy Markdown
Contributor

import { Navbar, Nav, NavItem } from 'react-bootstrap'; includes all react-bootstrap modules. By including the modules explicitly (i.e. import Navbar from 'react-bootstrap/lib/Navbar';), we can decrease the size of the production js-file and speed up hot reloading drastically.

`import { Navbar, Nav, NavItem } from 'react-bootstrap';` includes all react-bootstrap modules. By including the modules explicitly (i.e. `import Navbar from 'react-bootstrap/lib/Navbar';`), we can decrease the size of the production js-file and speed up hot reloading drastically.
quicksnap added a commit that referenced this pull request Jan 24, 2016
Update react-bootstrap imports
@quicksnap quicksnap merged commit bc45a02 into erikras:master Jan 24, 2016
@quicksnap
Copy link
Copy Markdown
Collaborator

Rad!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants